/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package server;

import java.io.Serializable;

/**
 *
 * @author senhlyheng
 */
public class TodoItem implements Serializable {
    
    private int id;
    private int version;
    private String content;
    private String lasUpdate;
    private int priority;
    private String deadline;

    public TodoItem(){
        // default constructor
    }
    
    public TodoItem(int id,int version, String content, String lastUpdate, int priority, String deadline){
        this.id = id;
        this.version = version;
        this.content = content;
        this.lasUpdate = lastUpdate;
        this.priority = priority;
        this.deadline = deadline;
    }
    
    public TodoItem(int id,int version, String content, String lastUpdate){
        this.id = id;
        this.version = version;
        this.content = content;
        this.lasUpdate = lastUpdate;
    }
    
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getId() {
        return id;
    }

    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLasUpdate() {
        return lasUpdate;
    }

    public void setLasUpdate(String lasUpdate) {
        this.lasUpdate = lasUpdate;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }    
}
